
package jnijavacpp;

/**
 *
 * @author AbdelhaqA
 */
public class JniJavaCpp {
    static{
        System.out.println(System.getProperty("java.library.path"));
	System.loadLibrary("JniCppAlgorithm");
    }
    public native String cppAlgorithm(String fname,int MinObject, int MinAttrib);
    
    /**
     * @param args the command line arguments
     */
      
    public static void main(String[] args) {
        String fname = "tealady.cxt";
        int MinObject = 2; 
        int MinAttrib = 3; 
        System.out.println("output java is "+ new JniJavaCpp().cppAlgorithm(fname, MinObject, MinAttrib));
       
    }
}
